/* -*- Mode: c; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
/*
  RefObject (http://code.google.com/p/refobject/)
  Copyright (C) 2010-2011 MIURA Shirow (sharow)
*/

#if UNIT_TESTING
/* for cmockery */
extern void mock_assert(const int result, const char * const expression,
						const char * const file, const int line);
# undef assert
# define assert(expression) \
  mock_assert((int)(expression), #expression, __FILE__, __LINE__);

#else

# ifdef REFOBJECT_HAS_STDCLIB
#  include <assert.h>
# else
#  define assert(expression) do {if (!(expression)){*(char **)0 = #expression;}} while(0);
#endif

#endif
